package com.example;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

public class Activity3 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity3);
        Intent intent = getIntent();
        String data = intent.getStringExtra("extra_data");
        Log.d("Activity3",data);

        Intent send = new Intent();
        send.putExtra("data_return","world");
        setResult(300,send);
        finish();
    }
}